<?
include 'config.php';

if($i == 1)
{
	mysql_close($connect);
	$i = 0;
}


if($i == 0)
{
	define("DB_SERVER", $server);
	define("DB_USER", $user);
	define("DB_PASS", $pass);
	define("DB_NAME", $dbname);

	$connect = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());
	mysql_select_db(DB_NAME, $connect) or die(mysql_error());

	$i = 1;
}
?>
